﻿using CoreModule;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IdResourceModule
{
    /// <summary>
    /// 
    /// </summary>
    public static class PressureStatusExtension
    {
        public static List<KeyValuePair<string, PressureStatus>> SBPPressureStatusItemsSource
        {
            get
            {

                var instance = WPFLocalizeExtension.Engine.LocalizeDictionary.Instance;

                var string_Flat= instance.GetLocalizedObject("String_Flat", null, null) + "";

                var string_Noraml = instance.GetLocalizedObject("String_Noraml", null, null) + "";

                var string_Mild_High = instance.GetLocalizedObject("String_Mild_High", null, null) + "";

                var string_Moderate_High = instance.GetLocalizedObject("String_Moderate_High", null, null) + "";

                var string_Heavy_High = instance.GetLocalizedObject("String_Heavy_High", null, null) + "";

            

                return new List<KeyValuePair<string, PressureStatus>>()
                {
                    new KeyValuePair<string, PressureStatus>("", PressureStatus.None),
                    new KeyValuePair<string, PressureStatus>(string_Flat, PressureStatus.Low),
                    new KeyValuePair<string, PressureStatus>(string_Noraml, PressureStatus.Normal),
                    new KeyValuePair<string, PressureStatus>(string_Mild_High, PressureStatus.High1),
                    new KeyValuePair<string, PressureStatus>(string_Moderate_High, PressureStatus.High2),
                    new KeyValuePair<string, PressureStatus>(string_Heavy_High, PressureStatus.High3),
                };
            }
        }
        /// 
        /// <summary>
        /// 
        /// </summary>
        public static List<KeyValuePair<string, PressureStatus>> DBPPressureStatusItemsSource
        {
            get
            {
                var instance = WPFLocalizeExtension.Engine.LocalizeDictionary.Instance;

                var string_Flat = instance.GetLocalizedObject("String_Flat", null, null) + "";

                var string_Noraml = instance.GetLocalizedObject("String_Noraml", null, null) + "";

                var string_Mild_High = instance.GetLocalizedObject("String_Mild_High", null, null) + "";

                var string_Moderate_High = instance.GetLocalizedObject("String_Moderate_High", null, null) + "";

                var string_Heavy_High = instance.GetLocalizedObject("String_Heavy_High", null, null) + "";



                return new List<KeyValuePair<string, PressureStatus>>()
                {
                    new KeyValuePair<string, PressureStatus>("", PressureStatus.None),
                    new KeyValuePair<string, PressureStatus>(string_Flat, PressureStatus.Low),
                    new KeyValuePair<string, PressureStatus>(string_Noraml, PressureStatus.Normal),
                    new KeyValuePair<string, PressureStatus>(string_Mild_High, PressureStatus.High1),
                    new KeyValuePair<string, PressureStatus>(string_Moderate_High, PressureStatus.High2),
                    new KeyValuePair<string, PressureStatus>(string_Heavy_High, PressureStatus.High3),
                };
            }
        }
    }
}
